function deleteGoods(goodsId) {
	if (confirm("是否确认删除？")) {
		location.href = "/GoodsProj/delgoods.servlet?goodsId=" + goodsId;
	}
}
function deleteGoodsMany() {
	if (confirm("是否确认删除？")) {
		document.deletegoodsmanyform.submit();
	}
}

function changegoodsIds() {
	var deletemanycb = document.getElementById("deletemanycb");
	var goodsIds = document.getElementsByName("goodsIds");
	for ( var i = 0; i < goodsIds.length; i++) {
		goodsIds[i].checked = deletemanycb.checked;
	}
}